const fs = window.require('fs');
import iconv from 'iconv-lite';

const readLog = (path) => {
    const data = fs.readFileSync(path,{encoding:'binary'});
    const buf = new Buffer(data, 'binary');
    const str = iconv.decode(buf, 'GBK');
    return str;
}

export {readLog};
